package com.gidgabs.modules.base.service.impl;

import com.gidgabs.modules.base.service.TbImgService;
import com.gidgabs.modules.dao.TbImgDao;
import com.gidgabs.modules.entity.TbImgEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service
public class TbImgServiceImpl implements TbImgService {
	@Autowired
	private TbImgDao imgDao;
	
	@Override
	public TbImgEntity queryObject(Integer id){
		return imgDao.queryObject(id);
	}

	@Override
	public TbImgEntity queryByObject(TbImgEntity tbImgEntity) {
		return imgDao.queryByObject(tbImgEntity);
	}

	@Override
	public List<TbImgEntity> queryByList(TbImgEntity tbImgEntity) {
		return imgDao.queryByList(tbImgEntity);
	}

	@Override
	public List<TbImgEntity> queryList(Map<String, Object> map){
		return imgDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return imgDao.queryTotal(map);
	}
	
	@Override
	public void save(TbImgEntity img){
		imgDao.save(img);
	}
	
	@Override
	public void update(TbImgEntity img){
		imgDao.update(img);
	}
	
	@Override
	public void delete(Integer id){
		imgDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		imgDao.deleteBatch(ids);
	}
	
}
